﻿@{
    Bundle("markItUpBBCode");
    Bundle("jquery_validate");
}
           
<script type="text/javascript">
    jQuery(document).ready(function () {
        jQuery('@ID("#form")').validate({
            rules: {
                title: {
                    required: true
                },
                description: {
                    required: true
                }
            }
        });
        jQuery('@ID("#txt_description")').markItUp(markItUpBBCodeSet);
    });
</script>
<form class="common-form" id="@ID("form")" action="@Url.Action(Loc.Act("Create").Localized())" method="post">
    <input type="hidden" name="forumID" value="@JDM.Int32(Model.Forum.EntityID)" />
    <table>
        <tr>
            <td>
                <label>@T(Res.Name("Title"))</label>
            </td>
            <td>
                <input type="text" name="title" maxlength="100" />
            </td>
        </tr>
        <tr>
            <td>
                <label>@T(Res.Name("Description"))</label>
            </td>
            <td>
                <textarea id="@ID("txt_description")" name="description" maxlength="4000"></textarea>
            </td>
        </tr>
    </table>
    <ul class="bar toolbar">
        <li><button class="button" type="submit">@T(Res.In("Common").Of("Act").Name("Submit"))</button></li>
    </ul>
</form>
